project(
  languages_manager
  LANGUAGES CXX
)

set(CMAKE_CXX_STANDARD 17)
find_package(Qt5 COMPONENTS Widgets Core REQUIRED)

add_definitions(-DQLS_LANGUAGES_MANAGER_LIBRARY)

set(_srcs
    src/qls_languages_manager.cpp
)

set(_headers
    include/languages_manager/qls_languages_manager.h
    include/languages_manager/qls_languages_manager_global.h
)

add_library(languages_manager SHARED ${_srcs} ${_headers})
target_link_libraries(languages_manager PUBLIC
    Qt5::Widgets Qt5::Core ${CMAKE_THREAD_LIBS_INIT}
)
target_link_libraries(languages_manager PRIVATE
    settings
)
target_include_directories(languages_manager PUBLIC include)

add_subdirectory(translations)
